.class public Les/dj;
.super Ljava/lang/Object;
.source "WaitingDialog.java"


# static fields
.field private static a:Landroid/os/Handler;

.field private static b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

.field private static c:Z

.field private static d:Ljava/lang/Object;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    sput-object v0, Les/dj;->a:Landroid/os/Handler;

    const/4 v0, 0x0

    .line 2
    sput-object v0, Les/dj;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

    const/4 v0, 0x0

    .line 3
    sput-boolean v0, Les/dj;->c:Z

    .line 4
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Les/dj;->d:Ljava/lang/Object;

    return-void
.end method

.method static synthetic a()Lcom/estrongs/android/ui/dialog/ProgressDialog;
    .locals 1

    .line 1
    sget-object v0, Les/dj;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

    return-object v0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/ProgressDialog;)Lcom/estrongs/android/ui/dialog/ProgressDialog;
    .locals 0

    .line 2
    sput-object p0, Les/dj;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

    return-object p0
.end method

.method public static final a(Landroid/content/Context;II)V
    .locals 0

    .line 4
    invoke-virtual {p0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p0, p1, p2}, Les/dj;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public static final a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 8

    .line 5
    sget-object v0, Les/dj;->d:Ljava/lang/Object;

    monitor-enter v0

    .line 6
    :try_start_0
    sget-boolean v1, Les/dj;->c:Z

    if-eqz v1, :cond_0

    sget-object v1, Les/dj;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v1, :cond_0

    .line 7
    :try_start_1
    sget-object v1, Les/dj;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catch_0
    :cond_0
    const/4 v1, 0x1

    .line 8
    :try_start_2
    sput-boolean v1, Les/dj;->c:Z

    const/4 v5, 0x1

    const/4 v6, 0x1

    .line 9
    new-instance v7, Les/dj$a;

    invoke-direct {v7, p0}, Les/dj$a;-><init>(Landroid/content/Context;)V

    move-object v2, p0

    move-object v3, p1

    move-object v4, p2

    invoke-static/range {v2 .. v7}, Lcom/estrongs/android/ui/dialog/ProgressDialog;->a(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZLandroid/content/DialogInterface$OnCancelListener;)Lcom/estrongs/android/ui/dialog/ProgressDialog;

    move-result-object p0

    sput-object p0, Les/dj;->b:Lcom/estrongs/android/ui/dialog/ProgressDialog;

    .line 10
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    .line 11
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw p0
.end method

.method static synthetic a(Z)Z
    .locals 0

    .line 3
    sput-boolean p0, Les/dj;->c:Z

    return p0
.end method

.method public static final b()V
    .locals 3

    .line 1
    sget-object v0, Les/dj;->d:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-boolean v1, Les/dj;->c:Z

    if-nez v1, :cond_0

    .line 3
    monitor-exit v0

    return-void

    .line 4
    :cond_0
    sget-object v1, Les/dj;->a:Landroid/os/Handler;

    new-instance v2, Les/dj$b;

    invoke-direct {v2}, Les/dj$b;-><init>()V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 5
    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method
